home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-11 | 1.6 KB | 71 lines | [TEXT/CWIE] |
- // DModelessTextData -- data class for Everything
-
- #pragma once
-
- #include "AMDataDef.h"
-
- class LFileStream;
-
-
- const long idSmall3 = 'Sma3';
- const long idLarge3 = 'Lar3';
- const long idX12347 = 'X147';
- const long idX12345e8 = 'X128';
- const long idPassword3 = 'Pas3';
- const long idDate3 = 'Dat3';
- const long idTime3 = 'Tim3';
- const long idStyled3 = 'Sty3';
-
-
- //----------
- class DModelessTextData : public AMDataDef {
- public:
- DModelessTextData ();
- virtual ~DModelessTextData ();
-
- public:
- void CopyFrom (DModelessTextData* inOther);
- void ReadFromFile (LFileStream* inFile);
- void WriteToFile (LFileStream* inFile);
-
- public: // accessors
- StringPtr GetSmall3 (Str255 outStr = nil) const;
- void SetSmall3 (ConstStringPtr inValue);
- void SetSmall3 (CharsHandle inValue);
-
- StringPtr GetLarge3 (Str255 outStr = nil) const;
- void SetLarge3 (ConstStringPtr inValue);
- void SetLarge3 (CharsHandle inValue);
-
- SInt32 GetX12347 () const;
- void SetX12347 (SInt32 inValue);
-
- double GetX12345e8 () const;
- void SetX12345e8 (double inValue);
-
- StringPtr GetPassword3 (Str255 outStr = nil) const;
- void SetPassword3 (ConstStringPtr inValue);
- void SetPassword3 (CharsHandle inValue);
-
- LongDateRec GetDate3 () const;
- void SetDate3 (LongDateRec inValue);
-
- LongDateRec GetTime3 () const;
- void SetTime3 (LongDateRec inValue);
-
- StringPtr GetStyled3 (Str255 outStr = nil) const;
- void SetStyled3 (ConstStringPtr inValue);
- void SetStyled3 (CharsHandle inValue);
-
-
- protected:
- Str255 mSmall3;
- Str255 mLarge3;
- SInt32 mX12347;
- double mX12345e8;
- Str255 mPassword3;
- LongDateRec mDate3;
- LongDateRec mTime3;
- Str255 mStyled3;
- };
-